﻿using System;
using Echo.Context.UltiProNet.Contexts;
using Echo.Core.Common;
using Echo.Core.TestAbstraction.WebUITest.MbUnit;
using Echo.Models.UltimateSoftware.WebUITest.MbUnit;
using MbUnit.Framework;

////*************************************************************************************************************************************
////Created by: Elizabeth Smith (SWAT)
////Date created: 07/27/2009
////Modified by: David Mello (Echo Conversion)
////Date modified: 07/11/2013
////Reason: 
////ULTI-00000 JIRA Description.
////*************************************************************************************************************************************

namespace Echo.Automation.Payroll.W2_Print_Approval
{
    using Echo.Models.UltimateSoftware.WebUITest.MbUnit;

    [TestFixture]
    [Author("<insert author name>", "<insert author email address>")]
    [Category("<fill in with functional area name. ie: Pay Groups>")]
    [Header("Config")]
    [Config(".NET")]
    public class W2PrintFileProcessingFunc : MbUnitAutomatedTest
    {
        UltiPro ultiPro;
        UltiProDatabaseContext sb340;
        UltiProDatabaseContext sb122;
        UltiProDatabaseContext sb123;

        [FixtureSetUp]
        public void FixtureSetUp()
        {
            this.ultiPro = Launch<UltiPro>();

            this.sb340 = Init<UltiProDatabaseContext>();
            this.sb340.Company = ConfigDatabase("ULTIPRO_SB340");
            this.sb340.Site = ConfigDatabase("ULTIPRO_SB340");

            this.sb122 = Init<UltiProDatabaseContext>();
            this.sb122.Company = ConfigDatabase("ULTIPRO_SB122");

            this.sb123 = Init<UltiProDatabaseContext>();
            this.sb123.Company = ConfigDatabase("ULTIPRO_SB123");

            this.sb340.Company.AddRollBack("paW2Approvals");
            this.sb340.Company.AddRollBack("paW2ApprovalDates");
            this.sb122.Company.AddRollBack("paW2Approvals");
            this.sb122.Company.AddRollBack("paW2ApprovalDates");
            this.sb123.Company.AddRollBack("paW2Approvals");
            this.sb123.Company.AddRollBack("paW2ApprovalDates");

            this.sb340.Company.Execute("DELETE FROM paW2Approvals");
            this.sb122.Company.Execute("DELETE FROM paW2Approvals");
            this.sb123.Company.Execute("DELETE FROM paW2Approvals");

            this.sb340.Company.Execute("DELETE FROM paW2ApprovalDates");
            this.sb122.Company.Execute("DELETE FROM paW2ApprovalDates");
            this.sb123.Company.Execute("DELETE FROM paW2ApprovalDates");
        }

        [FixtureTearDown]
        public void FixtureTearDown()
        {
            ultiPro.Browser.Quit();
        }

        [SetUp]
        public void SetUp()
        {
        }

        [TearDown]
        public void TearDown()
        {
        }

        [Test]
        public void Test1()
        {
        }

        [Test]
        public void Test2()
        {
        }
    }
}
